package cn.xhy.material.controller.admin.pojectinfo.vo;

import cn.xhy.material.dal.dataobject.pojectinfo.ContractDO;
import cn.xhy.material.dal.dataobject.pojectinfo.CustomerProjectDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import javax.validation.constraints.*;
import java.util.List;

@Schema(description = "管理后台 - 项目信息新增/修改 Request VO")
@Data
public class PojectInfoSaveReqVO {

    @Schema(description = "项目id标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "12549")
    private Long id;

    @Schema(description = "项目名称", example = "赵六")
    private String projectName;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "9983")
    @NotNull(message = "租户编号不能为空")
    private Long tenantId;

    @Schema(description = "负责人")
    private String head;

    @Schema(description = "销售合同列表")
    private List<ContractDO> contracts;

    @Schema(description = "客户和项目关系列表")
    private List<CustomerProjectDO> customerProjects;

}
